<%-- 
    Document   : logged_succesfully
    Created on : 12-dic-2011, 16.29.05
    Author     : Trento
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:subview id="login_form">
    <h:form >
        <table>
            <tr>
                <td>
                    <h:outputText value="#{msg.messaggio_benvenuto} #{loginBean.nome} #{loginBean.cognome} #{msg.messaggio_login} "/>
                    <h:outputText value="#{msg.medico}" rendered="#{loginBean.medico}"/>
                    <h:outputText value="#{msg.paziente}" rendered="#{loginBean.paziente}"/>
                    <h:outputText value="#{msg.operatore}" rendered="#{loginBean.operatore}"/>
                </td>
                <td>
                    <h:commandButton action="#{loginBean.logout()}" value="Logout" type="submit"/>
                </td>
            </tr>
        </table>
    </h:form>
</f:subview>
